package com.twu.biblioteca;

import java.io.InputStreamReader;
import java.util.Scanner;

public class BibliotecaApp {

    public static void main(String[] args) {
        Biblioteca biblioteca = new Biblioteca();
        biblioteca.start();
        System.out.println( biblioteca.showMessage()+"\n"+biblioteca.showMenuList());
        Scanner scanner = new Scanner(new InputStreamReader(System.in));
        String input = scanner.nextLine();
        while(!(input.equalsIgnoreCase("q"))){
            biblioteca.executeCommand(input);
            System.out.println( biblioteca.showMessage()+"\n"+biblioteca.showMenuList());
            input = scanner.nextLine();
        }
        System.exit(0);
    }

}
